//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_filldropedbox.sqf"
#include "x_setup.sqf"

PARAMS_2(_box,_boxcargo);
_ar = (_boxcargo select 0) select 0;
_ar1 = (_boxcargo select 0) select 1;
{
	_box addWeaponCargo [_x, _ar1 select _forEachIndex];
} forEach _ar;
_ar = (_boxcargo select 1) select 0;
_ar1 = (_boxcargo select 1) select 1;
{
	_box addMagazineCargo [_x, _ar1 select _forEachIndex];
} forEach _ar;
_ar = (_boxcargo select 2) select 0;
_ar1 = (_boxcargo select 2) select 1;
{
	_box addItemCargo [_x, _ar1 select _forEachIndex];
} forEach _ar;
 